package com.wechat.back.pojo;


import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Admin {
    @NotNull//不为null校验
    private Integer adminId;//主键ID

    private String adminName;//用户名

    @JsonIgnore //查询返回忽略password
    private String password;//密码

    private LocalDateTime createTime;//创建时间

    private LocalDateTime updateTime;//更新时间

    private String adminPic; //头像
}
